Skip to content

Fix email domain validation for Welsh support email#2745

Merged
lfdebrux merged 1 commit intomainfrom
ldeb-fix-welsh-translation-input-allowed-email-domain-validator
May 1, 2026
Merged

Fix email domain validation for Welsh support email#2745
lfdebrux merged 1 commit intomainfrom
ldeb-fix-welsh-translation-input-allowed-email-domain-validator

Conversation

@lfdebrux
Copy link
Copy Markdown
Contributor

@lfdebrux lfdebrux commented May 1, 2026

What problem does this pull request solve?

Users with email addresses not ending in gov.uk were experiencing errors when trying to provide a Welsh translation for their form because their support email was valid for the English version but not the Welsh version (see https://govuk.zendesk.com/agent/tickets/6565015).

This was happening even though both support_email and support_email_cy used the allowed_domains validator because the Welsh translation input object wasn't exposing the current user to the validator.

This PR fixes the validation so that it works as expected.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

Users with email addresses not ending in gov.uk were experiencing errors
when trying to provide a Welsh translation for their form because their
support email was valid for the English version but not the Welsh
version. This was happening even though both `support_email` and
`support_email_cy` used the `allowed_domains` validator because the Welsh
translation input object wasn't exposing the current user to the
validator.

This commit fixes this so that things work as expected.
@lfdebrux lfdebrux force-pushed the ldeb-fix-welsh-translation-input-allowed-email-domain-validator branch from 67b9665 to 78ea68c Compare May 1, 2026 08:38
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2745.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

@lfdebrux lfdebrux added this pull request to the merge queue May 1, 2026
Merged via the queue into main with commit 0667692 May 1, 2026
3 checks passed
@lfdebrux lfdebrux deleted the ldeb-fix-welsh-translation-input-allowed-email-domain-validator branch May 1, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants